<template>
  <div class="use-iframe">
    <iframe class="use-iframe-cont" src="./h5.html" frameborder="0"></iframe>
  </div>
</template>

<script>
export default {
  data() {
    return {
      vueid: "myid",
    };
  },
  methods: {
    changeNodeMsg(e) {
      alert(e);
    },
  },
  created() {
    let that = this;
    window[this.vueid] = (e) => {
      that.changeNodeMsg(e);
    };
  },
};
</script>

<style lang="scss">
.use-iframe {
  width: 100vw;
  min-height: 100vh;

  &-cont {
    width: 100%;
    min-height: 100vh;
  }
}
</style>